package cn.changeforyou.web.cloud.blog.service;

import cn.changeforyou.web.cloud.webBase.common.model.PageQueryModel;
import cn.changeforyou.web.cloud.blog.entity.dto.ArticleDTO;
import cn.changeforyou.web.cloud.blog.entity.po.Article;
import cn.changeforyou.web.cloud.blog.model.ArticleModel;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *
 */
public interface ArticleService extends IService<Article> {
    /**
     * 获取全部标签
     * @return
     */
    List<String> getTags();

    Page<Article> getArticlePage(PageQueryModel<ArticleModel> pageQueryModel);

    Article addOrUpdate(ArticleDTO article);

    boolean saveOrUpdate(Article article);
}
